/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package MODEL.DAO;

import MODEL.POJO.Customizequizs;
import org.hibernate.HibernateException;
import org.hibernate.Session;

/**
 *
 * @author Quangbt
 */
public class CustomizeQuizsDao {
    //<editor-fold defaultstate="collapsed" desc="1. get level">
    public static Customizequizs getLevel(int id) {
        Customizequizs nd = null;
        Session session = HibernateUtil.getSessionFactory().openSession();
        try {
            nd = (Customizequizs) session.get(Customizequizs.class, id);
        } catch (HibernateException ex) {
            //Log the exception
            System.err.println(ex);
        } finally {
            session.close();
        }
        return nd;
    }
    //</editor-fold>
}
